<?php
	FLEA::loadClass('FLEA_Db_TableDataGateway');
	class Model_Artists extends FLEA_Db_TableDataGateway
	{
		var $tableName = 'tb_artist';
		var $primaryKey = 'artist_id';
		var $hasMany = array(
			array(
				'tableClass' => 'Model_Albums',
				'foreignKey' => 'artist_id',
				'mappingName' => 'albums',
			),
		);

		var $belongsTo = array(
			array(
            'tableClass' => 'Model_Country',
            'foreignKey' => 'country_id',
            'mappingName' => 'countries',
			),

		);

		
	}
?>